package com.seeyon.ctp.rest.resources;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.alibaba.fastjson.JSONObject;
import com.seeyon.apps.kk.manager.CollaborationLogManager;
import com.seeyon.ctp.common.AppContext;



@Path("kkcollaborationLog")
@Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@Produces(MediaType.APPLICATION_JSON)
public class KKCollaborationLogResource extends BaseResource {

	private static final Log log = LogFactory.getLog(KKCollaborationLogResource.class);
	
	CollaborationLogManager logManager = (CollaborationLogManager) AppContext.getBean("collaborationLogManager");

	
	@SuppressWarnings("deprecation")
	@GET
	@Path("/getAllCollaborationLog")
	@Consumes({"application/json"})
	public Response getAllCollaborationLog(){
		
		JSONObject result=this.logManager.getAllCollaborationLog();
		return ok(result);
	}
	

}
